import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
Vue.prototype.websiteUrl = 'http://api.yjzufang.com';  
Vue.prototype.checkLogin = function(){
	var token = uni.getStorageSync('token');
	//var SUID  = uni.getStorageSync('SUID');
	//var SRAND = uni.getStorageSync('SRAND');
	//var SNAME = uni.getStorageSync('SNAME');
	//var SFACE = uni.getStorageSync('SFACE');
	if(token == ''){
		uni.showToast({
			title:'请登录',
			duration: 2000,
			icon:'none'
		})
		setTimeout(function(){ 
			
			uni.reLaunch({
				url:'/pages/login/login'
			});
			
		}, 2000);
											
		
	}
	return [token];
}



App.mpType = 'app'








const app = new Vue({
    ...App
})
app.$mount()
